home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1996 #6
/
Amiga Plus CD - 1996 - No. 06.iso
/
pd
/
netz
/
dl
/
configure
next >
Wrap
Text File
|
1992-09-02
|
939b
|
50 lines
#!/bin/sh
#
# Simple configure script for DownLoad v1.00
#
# This program is in the public domain and may be used freely by anyone
# who wants to.
#
# Start this script to create Makefile from Makefile.in
#
# Last update: 13 Feb 1996
#
# Please send bug reports to: Zlatko Calusic <maverick@fly.cc.fer.hr>
#
if [ -f `which gcc` ]
then
CC=gcc
CFLAGS="-O2 -Wall -Wno-implicit"
echo "We'll use gcc for compiling."
else
if [ -f `which cc` ]
then
CC=cc
if [ "`uname -s`" = "HP-UX" ]
then
CFLAGS="+O3 -Aa -D_HPUX_SOURCE"
else
CFLAGS=-O
fi
echo "We'll use cc for compiling."
else
echo "Couldn't find compiler in your path ..."
exit 0
fi
fi
if [ "`uname -s`" = "SunOS" -a "`uname -r | cut -c1`" = "5" ]
then
LIBS="-lnsl -lsocket"
else
LIBS=
fi
echo "Creating Makefile ..."
sed -e "s/@CC@/$CC/" -e "s/@CFLAGS@/$CFLAGS/" -e "s/@LIBS@/$LIBS/" < Makefile.in > Makefile
sleep 1
echo "You can type 'make' now."
exit 0